<script setup>
import { onLoad } from "@dcloudio/uni-app";
import { useUserStore } from "@/store/user.js";
const userStore = useUserStore();
onLoad(() => {
  if (userStore.isLogin) {
    uni.redirectTo({
      url: "/subpages/my/recharge_history",
    });
  } else {
    uni.redirectTo({
      url: "/subpages/account/login?url=/subpages/my/recharge_history",
    });
  }
});
</script>

<template>
  <view></view>
</template>

<style scoped lang="scss">

</style>